/**
 * @ author: 汪孟苹
 */
define(["jquery","template","scprit/followup/template/courseReservation/courseList.tpl.js"],function($,template,tpl){
	var lostFollowupRecord = {};
	var drawlostFollowupRecord = function(data){
		return template("tpl_lostFollowupRecord_reason",data);
	}
	var lostFollowupRecordData = function(list){
		var arr = [];
		if(list){
			for(var i=0;i<list.length;i++){
				arr[i] = list[i]; 
			}
		}
		return arr;
	}
	lostFollowupRecord.addBespeak = function(options){
		var data = {
			rows: lostFollowupRecordData(options.list)
		}
		options.dom.html(tpl.addBespeak());
		var h = template("tpl_addBespeak",data);
		options.dom.html(h);
	}
	lostFollowupRecord.updateBespeak = function(options){
		options.dom.html(tpl.updateBespeak());
		var h = template("tpl_updateBespeak",options.list);
		options.dom.html(h);
	}
	return lostFollowupRecord;
});